<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page import="sky.tro.FlightLayer" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    SimpleDateFormat formatter3 = new SimpleDateFormat("HH:mm");
    Date date = formatter.parse(((FlightLayer)request.getAttribute("flight")).getDate().toString());
%>
<div class="flightInfos" style="margin: 0 auto">
    <div class="flightInfoHeader">
        <span class="flightInfoHeader" style="width: 90px">
            ${flight.status}
        </span>
        <span class="flightInfoHeader" style="width: 90px">
            <%= formatter3.format(date) %>
        </span>
        <span class="flightInfoHeader" style="width: 90px">
            ${flight.airportName}
        </span>
    </div>
</div>